<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

	<thead>
		<tr>
			<th>序号</th>
			<th>数据对象名称</th>
			<th>CSV文件下载链接</th>
			<th>重置到系统注册状态</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
			<%--<tr id="members">--%>
				<%--<td><span class="label bg-color-teal">1</span></td>--%>
				<%--<td>企业成员账号及业务组模板--%>
					<%--<span class="label bg-color-teal"></span>--%>
				<%--</td>--%>
				<%--<td><a title="下载" key="" class="btn btn-default "--%>
						<%--href="ajax-import!download.action?csvname=members"><i class="fa fa-lg fa-download"></i> 下载CSV文件</a>--%>
				<%--</td>--%>
				<%--<td><span class="label bg-color-teal">暂未开放</span></td>--%>
				<%--<td>--%>
					<%--<s:if test="2 == 1">--%>
						<%--<span class="label bg-color-teal">不可编辑</span>--%>
						<%----%>
					<%--</s:if>--%>
					<%--<s:else>--%>
						<%--<!-- <a title="删除" key="ajax_members_actions_delete"--%>
						<%--class="btn btn-default btn-circle" href="javascript:void(0);"><i--%>
							<%--class="fa fa-lg fa-trash-o"></i></a> -->--%>
						<%--<a title="上传新数据" key="ajax_import_btn_upload" class="btn btn-default "--%>
						<%--href="javascript:void(0);"><i class="fa fa-lg fa-cloud-upload"></i> 导入新数据CSV </a>--%>
					<%--</s:else>--%>
				<%--</td>--%>
			<%--</tr>--%>
			<%--<tr id="product">--%>
				<%--<td><span class="label bg-color-teal">2</span></td>--%>
				<%--<td>产品及产品类别模板--%>
					<%--<span class="label bg-color-teal"></span>--%>
				<%--</td>--%>
				<%--<td><a title="下载" key="" class="btn btn-default "--%>
						<%--href="ajax-import!download.action?csvname=product"><i class="fa fa-lg fa-download"></i> 下载CSV文件</a>--%>
				<%--</td>--%>
				<%--<td><span class="label bg-color-teal">暂未开放</span></td>--%>
				<%--<td>--%>
					<%--<s:if test="2 == 1">--%>
						<%--<span class="label bg-color-teal">不可编辑</span>--%>
						<%----%>
					<%--</s:if>--%>
					<%--<s:else>--%>
						<%--<!-- <a title="删除" key="ajax_members_actions_delete"--%>
						<%--class="btn btn-default btn-circle" href="javascript:void(0);"><i--%>
							<%--class="fa fa-lg fa-trash-o"></i></a> -->--%>
						<%--<a title="上传新数据" key="ajax_import_btn_upload" class="btn btn-default "--%>
						<%--href="javascript:void(0);"><i class="fa fa-lg fa-cloud-upload"></i> 导入新数据CSV </a>--%>
					<%--</s:else>--%>
				<%--</td>--%>
			<%--</tr>--%>
			<%----%>
			<tr id="client">
				<td><span class="label bg-color-teal">1</span></td>
				<td>客户信息模板
					<span class="label bg-color-teal"></span>
				</td>
				<td><a title="下载" key="" class="btn btn-default "
						href="ajax-import!downTemplate.action?csvname=client"><i class="fa fa-lg fa-download"></i> 下载模板</a>
				</td>
				<td><span class="label bg-color-teal">暂未开放</span></td>
				<td>
					<s:if test="2 == 1">
						<span class="label bg-color-teal">不可编辑</span>

					</s:if>
					<s:else>
						<!-- <a title="删除" key="ajax_members_actions_delete"
						class="btn btn-default btn-circle" href="javascript:void(0);"><i
							class="fa fa-lg fa-trash-o"></i></a> -->
						<a title="上传新数据" key="ajax_import_btn_upload" class="btn btn-default "
						href="javascript:void(0);"><i class="fa fa-lg fa-cloud-upload"></i> 导入新数据 </a>
					</s:else>
				</td>
			</tr>
			<%----%>
			<tr id="linkman">
				<td><span class="label bg-color-teal">2</span></td>
				<td>联系人（客户信息下）模板
					<span class="label bg-color-teal"></span>
				</td>
				<td><a title="下载" key="" class="btn btn-default "
						href="ajax-import!downTemplate.action?csvname=linkman"><i class="fa fa-lg fa-download"></i> 下载模板</a>
				</td>
				<td><span class="label bg-color-teal">暂未开放</span></td>
				<td>
					<s:if test="2 == 1">
						<span class="label bg-color-teal">不可编辑</span>

					</s:if>
					<s:else>
						<!-- <a title="删除" key="ajax_members_actions_delete"
						class="btn btn-default btn-circle" href="javascript:void(0);"><i
							class="fa fa-lg fa-trash-o"></i></a> -->
						<a title="上传新数据" key="ajax_import_btn_upload" class="btn btn-default "
						href="javascript:void(0);"><i class="fa fa-lg fa-cloud-upload"></i> 导入新数据 </a>
					</s:else>
				</td>
			</tr>
			
			<tr id="proInfo">
				<td><span class="label bg-color-teal">3</span></td>
				<td>项目信息模板
					<span class="label bg-color-teal"></span>
				</td>
				<td><a title="下载" key="" class="btn btn-default "
						href="ajax-import!downTemplate.action?csvname=project"><i class="fa fa-lg fa-download"></i> 下载模板</a>
				</td>
				<td><span class="label bg-color-teal">暂未开放</span></td>
				<td>
					<s:if test="2 == 1">
						<span class="label bg-color-teal">不可编辑</span>
						
					</s:if>
					<s:else>
						<!-- <a title="删除" key="ajax_members_actions_delete"
						class="btn btn-default btn-circle" href="javascript:void(0);"><i
							class="fa fa-lg fa-trash-o"></i></a> -->
						<a title="上传新数据" key="ajax_import_btn_upload" class="btn btn-default "
						href="javascript:void(0);"><i class="fa fa-lg fa-cloud-upload"></i> 导入新数据 </a>
					</s:else>
				</td>
			</tr>
	</tbody>
<script>
	//member delete
	$("a[key=ajax_import_btn_reload]").click(function() {
		var this_tr = $(this).parent().parent();
		fn_delete($(this_tr).attr("id"));
	});
	//member edit
	$("a[key=ajax_import_btn_upload]").click(function() {
		var this_tr = $(this).parent().parent();
		loadURL("ajax-import!dialog.action?csvname=" + $(this_tr).attr("id"), $('#dialog-import_message'))
		$('#dialog-import_message').dialog('open');
	});
</script>
